package com.haizhi.crm.common.constant;

import com.haizhi.crm.common.model.Status;

/**
 * Created by chengmo on 2018/5/17.
 */
public enum SearchStatus implements Status {
    /**
     * 20000~29999
     */
    CALL_REST_ERROR(20000, "调用基础平台搜索服务异常，参数：{0}" ),
    INVALID_PARAM_ERROR(20001, "无效参数，参数：{0}" );

    private int code;
    private String desc;

    SearchStatus(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getDesc() {
        return desc;
    }
}
